home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / bipl.zip / PROCS.ZIP / PROGARY.ICN < prev    next >
Text File  |  1992-09-28  |  672b  |  29 lines

  1. ###########################################################################
  2. #
  3. #    File:     progary.icn
  4. #
  5. #    Subject:  Procedure to place program in a array
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     June 12, 1992
  10. #
  11. ############################################################################
  12. #
  13. #  This procedure creates an array with one element for each program token.
  14. #  The program is read from file.  The  initial value of each element is value.
  15. #
  16. ############################################################################
  17.  
  18. procedure progary(file, value)
  19.  
  20.    local A
  21.  
  22.    A := []
  23.  
  24.    while put(A, list(*read(f), value))
  25.  
  26.    return A
  27.  
  28. end
  29.